<template>
  <div class="home">
    <el-container>
      <top-bar></top-bar>
      <el-header height="60px">
        <span>
          <img class="logo" src="../assets/img/logo.png" />
          <img class="title" src="../assets/img/title.png" />
          <head-bar></head-bar>
        </span>
      </el-header>
      <bulletin-bar></bulletin-bar>
      <el-main>
        <router-view v-slot="{ Component }">
          <transition mode="out-in">
            <component :is="Component" />
          </transition>
        </router-view>
      </el-main>
      <el-footer>关于我们</el-footer>
    </el-container>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import HeadBar from '@/components/Common/HeadBar.vue';
import TopBar from '@/components/Common/TopBar.vue';
import BulletinBar from '@/components/Common/BulletinBar.vue';
export default defineComponent({
  name: 'Home',
  components: { HeadBar, TopBar, BulletinBar },
});
</script>

<style lang="scss" scoped>
.el-container {
  min-width: 1500px;
  padding: 0;
}
.el-header {
  display: inline;
  margin: 30px auto 70px;
  padding: 0;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  text-align: center;
  line-height: 60px;
  * {
    float: left;
  }
  span {
    padding: 20px 10px;
    img {
      display: inline-block;
      // margin-left: 0px;
      margin-right: 20px;
    }
    span {
      padding: 0;
      margin-left: 30px;
      margin-right: 70px;
      margin-bottom: 20px;
      font-size: 40px;
    }
    ul {
      margin-left: 40px;
      margin-right: 350px;
      padding: 0;
    }
  }
}
.el-footer {
  margin: 30px 0 10px;
  padding: 0;
  background-color: #223c61;
  color: rgb(255, 255, 255);
  text-align: center;
  line-height: 60px;
}
.el-main {
  background-image: url('../assets/img/main-bg.png');
  background-color: #ffffff;
  color: #333;
  text-align: center;
  line-height: 160px;
  padding: 0;
  overflow: hidden;
}

body > .el-container {
  margin-bottom: 40px;
}
a {
  text-decoration: none;
}
.logo {
  float: left;
  height: 80px;
  margin: 0 !important;
}
.title {
  height: 100px;
  margin: -10px 4px 0;
}
.v-enter-from,
.v-leave-to {
  opacity: 0;
  transform: translateY(-1vw);
}

.v-enter-active,
.v-leave-active {
  transition: all 0.3s ease;
}
</style>
